package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Event_StepAlert", description = "事件步骤消息通知表")
@TableName(value = "Event_StepAlert")
public class EventStepAlert extends FBaseEntity implements Serializable {


    
    @ApiModelProperty("步骤ID")
    @TableField(value = "stepId")
    private Long stepId;
    
    @ApiModelProperty("延迟时间")
    @TableField(value = "timeSpan")
    private Long timeSpan;
    
    @ApiModelProperty("0 从发起时间计时, 1 从本步骤开始计时")
    @TableField(value = "spanType")
    private Long spanType;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("通知方式")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "alertType")
    private String alertType;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("消息模板")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "messageTemp")
    private String messageTemp;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("通知角色列表")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "roleIds")
    private String roleIds;






}

